SOURCES := $(wildcard *.cpp)
OBJS := $(subst .cpp,.o,$(SOURCES))

all: $(OBJS)
	ar rcs $(TARGET_DIR)libps.a $(foreach n,$(^F),$(OUT_DIR)$(n))

%.o: %.cpp
	$(CC) -c $< -o $(OUT_DIR)$@	
